add tmv-cpp, a C++ templated matrix-vector math library.

This is a dependency of gal-sim.  It is available here:
  http://code.google.com/p/tmv-cpp/

As requested here I am submitting a new pull request with just this one formula.
https://github.com/Homebrew/homebrew-science/pull/439#issuecomment-30073121