reused __local buffers in icvCalcOrientation brings local mem usage down to 1408 from 2560