Adding more memory to block matching