Fixed sqrt issue for big integer issue by using Long data type