Implementation of different alghoritms in golang