Revert "Implements some math functions for faster performance"

This reverts commit acc0676c8bd8de1ffb0bc41bcc89c2fda8a19ac9.

Change-Id: Ia98c7c97701ead536e6b08b009a5fc6c184dbf01