Added a proper substitution matrix.

This should improve the accuracy slightly and reduce the number of traceback
routes through the dp table, which is important for the global traceback.