Started writing the training algorithm, code to convert between model vectors and
mixture objects, as well as corresponding test code.