added a class to compute distance using dynamic programming to compare alignment