optimal block and grid size automatic generation finished for 2D LBP