discussion of cost matrices, intro section