update implementation of CooccurrenceMatrix to return double[][]