fixed Bug #3143 - flann 'not implemented' error

http://code.opencv.org/issues/3143