use boost to create directories
rename "similar_" field to "label_"
add enum to params so that choice of label type is more explicit
refactor label computation code into a private function
add binary function generator and "caffe_cpu_same()" functions to math