add implementation of removeMin