Implemenation of some fundamental algorithms in Go