Practice of what I learnt so far, sample program to compute kth largest element in a vector