Cleaned up Unused Functions. Added buildMapTree generates map[major][minor]={soc,weight}. And getMajorGroupWeights and getMinorGroupWeights for weights calculation.
Cleaned up Unused Functions. Added buildMapTree generates map[major][minor]={soc,weight}. And getMajorGroupWeights and getMinorGroupWeights for weights calculation.

david1hung/P3,david1hung/P3,david1hung/P3,david1hung/P3,david1hung/P3,david1hung/P3