tree:modified binary traverse functions names.r and s stands for recursion and stack implementation respectively