Move the variable "next" out of the loop so that the number of Mat::ptr usages is reduced
Move the variable "next" out of the loop so that the number of Mat::ptr usages is reduced

This is possible because our Ldet is guaranteed to be continuous.

h2suzuki/fast_akaze,h2suzuki/fast_akaze