Adding to matrix implementation.
Parallelizing assign and aggregate methods.