added vecmat
added the unimpressive gmgm algorithm