Functions receive Vec pointers now instead of array in order to
remove matrix.h from the header file (it's in source file instead).