gray's math lib