Second cut - added the glm source and made a copy of the functionality I need for .NET.