Add program that calculates 'badness' of given distances matrix