Speed up boundary using a simple line if possible
Silly mistake with Chebyshev distance
Replace all unsigned with signed ints