Added morris traversal algorithm