Finished coding photon mapping. Debugging find_k_nn.