172 vector function

Preliminary code review of new functions. Tests will be added once I know the implementation is correct.
Of course, I just put these in to remind myself what I need to test. They will be removed.