Mode in special cases and calculation of mode through median and mean