Now uses distance functions for WEKA core. Deleted database parameter as only one database could be specified.

git-svn-id: https://svn.cms.waikato.ac.nz/svn/weka@10838 e0a1b77d-ad91-4216-81b1-defd5f83fa92