insert and removeMax debugged