A Fast Linear Space Algorithm for Computing Longest Common Subsequences