Adapted Grauman's features SPM generation.

Spatial Pyramid Matching vocabulary generation adapted w.r.t. the
dataset using.