Gravar-mail: Efficient algorithms for the discovery of gapped factors