Introduced configurability to choose distance measures and provide params for the algorithms <Karthik>