Line-segment tree dynamic programming stereo correspondence algorithm in Go