fix up mode and median for integer-sized bins.
fix up mode and median for integer-sized bins.

williampma/relex,rodsol/relex-temp,williampma/relex,ainishdave/relex,anitzkin/relex,ainishdave/relex,rodsol/relex,linas/relex,anitzkin/relex,rodsol/relex-temp,ainishdave/relex,leungmanhin/relex,rodsol/relex,rodsol/relex-temp,linas/relex,williampma/relex,virneo/relex,rodsol/relex-temp,virneo/relex,AmeBel/relex,rodsol/relex,rodsol/relex-temp,opencog/relex,virneo/relex,leungmanhin/relex,opencog/relex,linas/relex,anitzkin/relex,AmeBel/relex,ainishdave/relex,williampma/relex,virneo/relex,anitzkin/relex,rodsol/relex,leungmanhin/relex,anitzkin/relex,opencog/relex,AmeBel/relex