Tail call optimization using RecCall
unit test to make sure that tail call optimization works