added lowest-comon-ancestor. started on lowest-common-sequence