start implementation of extractMin