moving vector math into util library