Additional code for OpenANN that is under GPL license.