converted IndexPair
convert Coopy#compare_tables
port Alignment class