Fix off-by-one in get_alignments and title DP table in terminal output.