implemented and added new basic algorithm

- str2int