Added sanguis utility functions and use template aliases in math