Implemented minElement() and maxElement() Methods