Added a module to produce a binary matrix