Pankaj Sejwal - 2014-04-23

I think it is not possible to write such a single function, rather every function will have to be modified to print the intermediate steps.