Added the ability to specify the algorithm used for the nearest neighbours data structure. For some purposes, we do not want to query that structure, so we might want to avoid having to take ages to build a fast-to-query data structure if we can get away more easily
fixed bug where no features would be extracted if a dependency tree was not available (unnecessary continue)