Create MathLogic.java

Mathematical Logic in Java