- Added extract function and extract syntax to equation
- Minor improvements to small matrix operations