Misc edits
Add basic matrix implementation for sequences
Sequence implementation tests and fixes