removed commented out code and switched from deltaR to deltaR2
implemented fix for possible vector out of range exceptions
added protection for possible division by zero
leftover hardcoded parameter made configurable
templated jet matching function to minimize code duplication