linalg headers part1.

Placed the (ffpack-like) functions into a template header linalg.
trivial whitespace change