factor out flann settings; report max diff as well