ex5.1 - implement non-tail recursive version of toList()