Added tail recursive computation
Added animation option