Improve local maxima

I made some improvements to the local maxima function. Most notably it can now take an odf that is zero in large areas and will not return those zero points as potential peaks. It should also be a little faster.