Wrote filter to find local maxima in a scalar array (currently in 3d only, may want to add an option for slice at a time)