Sorting Algorithm With Minimum Time Complexity And Space