AKAZE optimizations
Merge pull request #3124 from f-morozov:optim_pr