Fixed bugs: 1) Now correctly clusters bars not of width 4. 2) Fixed getClosestCentroid bug and added getClosestCentroidFromVector function.