Some standard algorithms implemented in Go