Fixed bugs of SkeletonMixer

To calculate the distances it was using the sum of the squares but that not
matematically correct. Also in the leg fitting it was not calculating correctly
the mean of the bones.
BodyFitter fit_head_and_back now can recover from some errors

Before it would need the three bone positions to work, now if it fits as many
as it finds.