Fix Boost extensions

Fix and merge the orthogonalization and orthonormalization functions.
Also add two macros for defining meta-structs for this purpose.