value based selection sort added