Correlator And Calibration For The Canadian Hydrogen Intensity Mapping Experiment