Added code to fetch second minimum in list