added length, peek, and clear to node-based stack