A trial on implementing CPS transform: https://en.wikipedia.org/wiki/Continuation-passing_style