Solve memory problem in realtimeLBP2x8 function