Recurrence relation of bubble sort. Space complexity analysis.