Binary Matrix (BMT) format for storing and exporting sparse and dense matrices