Perfect visual representation of a recursive function