Convert nth to tail recursive form