Generic implementation of heuristic search methods in the Go programming language