added spatial pyramid calculations (General, Left, Right)