Math library inspired by Google Closure library