Group sequences by location