a local fann copy inlined, **incomplete copy of fann**