Sorting An Array Using Recursion In Python