Use midpoint in zoom function when the interpolated point is too close to the end points.
Merge branch 'master' into kahanSum
A more efficient way to do it:

http://stackoverflow.com/questions/16283000/most-efficient-way-to-loop-thought-eigen-matrix