Corrected some testcases. Expanded MathUtils. Simplified compile.sh