An algorithm for optimal prefix parsing of a noiseless and memoryless channel | Synapse