Visualizing various recursive problems