Methods for efficient object categorization, detection, scene recognition, and image search