Added modeAndLess Algo