Added K-Means speciation support. Added initial generic parallelisation tools. Other minor improvements.