getSpaceComplexity

Returns the space complexity of the algorithm.