Convert TensorOp from linked lists to arrays.

Compiles now but many tests failing.
Add tests for empty initialization of ProdSpace.
Bug fixes in TensorOp.

All TensorOp tests are passing now.
Bug fix in tensorOpAddScaledTo.