Arrays Sort Space Complexity In Java