Mode estimation using Histogram