some algorithms samples in golang