azMPIRaytrace function mainly. updated some supporting data structures