Finding the Space Complexity of Recursive Algorithms