peak.c - 2d array, finding local peaks in terrain data