added local buffer to the haar kernel; done some experiments on AMD