Refactored codebase to reduce duplication.
Implemented vector instructions.
Added instructions for working with array of vectors/matrices.