added median, average and range calculations. they will need to be seperated into service layer.
added gender lookup to research service