Algorithms written in go