modified ConstantQueue so that there are operations for getMax which is used in the k sliding windows problem