Optimization of tail recursion

Currently it targets only basic cases.

cf. http://jsperf.com/tco-for-fibonacci/2