Make `exclude_borders` option in peak_local_max nD

Prior modifications to peak_local_max make it nd-aware, but this does
not extend to the exclude_borders option. This commit changes that.
Use range instead of xrange
Merge pull request #1 from jni/peak-local-max-indices-nd

Make `exclude_borders` option in peak_local_max nD