Made a module to check equal buffers (from a function in discern method)