Program to print the kth smallest element of the array - O(nlongn)