modified the section on analytic triangulation to allow for arbitrarty numbers of detectors and polarizations