Added an accumulated ver. of extractMin