Added numbertree solution, although too slow.