Implement input matrix score

Extracts method `InputMatrix#score` and the `:measure` option to allow configuration of available similarity measures, which now include the [Sorensen coefficient](http://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient) in addition to Jaccard.