Various algorithms written in Go