CLIMATE-508: fixing bugs in Quantile_mapping module