1. A method for encoding of an input sequence of symbols, the symbols belonging to a finite alphabet, the method comprising: for each symbol in the input sequence, assigning the symbol to one of N subsequences of symbols, based on an estimated probability given by a context model; encoding the N subsequences in parallel by using N respective entropy coders to generate N respective encoded subsequences; and outputting a bitstream, wherein the bitstream includes the N encoded subsequences and information for locating each of the N encoded subsequences.