Common useful algorithms implemented in Golang