a few gmatrix additions.

These are so far untested. I was working my way towards doing outer product but didn't get there yet.

I am still getting used to git; I may pull-request more frequently than I should over the next few days, please let me know if I am doing anything else annoying with it.