Funtimes with trying to implement a 2D feature-detection algorithm in Go