personal working copy of mariusmuja/flann