changing order of CalculateMoments call and padding pcl arrays