first version of bag distance
added normalization
test case for bag distance
fixed some doc