add travesal.c with recursive and non-recursive method