remove large version
modify to inclusive version
modify to calculate normalized cdf
some modification