Optimal alignments in linear space | Synapse