Added groupmodalavg formula

Added formula to get modal average in a group-by query (using existing
code for the lookupmodalavg function), to help in data processing.