added psuedocode for recursive ray algorithm