Smart scaling of the 5G core network: an RNN-based approach