added spiralOrderTraversal method