Implemented sqrt method in Calculate.java