Efficient data structures for masks on 2D gridsM. Reinecke and E. HivonA&A, 580 (2015) A132DOI: https://doi.org/10.1051/0004-6361/201526549