1. Code Formating
2. Perfomance tweak on Histogram based partitioning