Added weighted constructor to CoM task
Switched Q to noalias