add spatial pyramid kernel