Add IRandom, MockRandom classes and test to PA1
Add CostMatrixBuilder.

Needs tests still.