Calculate square root using interger math only