Implemented removeMax()