added normalized bag similarity/distance