implemented and added new basic algorithm

- calculate square root