added and refactored the rest of the aggregation strategies, mergehandlers and traceDistance.