Predict next number in sequence machine learning