Revert "removed math utils"

This reverts commit 86a4c5f2bfe27b1505fd96c772350e527cb3c809.