moving the local declaration of avgQuats into the for loop because the resize at the end of the loop was screwing it up