Added spatial pyramid matching