adding a getMax and removeMax and unit tests