Corrected minor bug in pop() and peek() methods.