Added sqrt and passed JUnit test