Add tail call optimization example