add methods to make masks from a list of indexes