Vector operations WIP #231

This is the work-in-progress on #231. For now, all the operations are implemented, but a couple of things is still blocked due to no iterators support in matrices.