organize the 0/1 vectors by remainder group