Added Various distance measures.