include stdlib.h for abs() in vecmat.c