Added an overloaded ostream operator to conveniently print photon arrays; fixed a minor bug in the STL sort function call