Space Complexity of Machine Learning Algorithms