Kernelized pyramid nearest-neighbor search for object categorization