Filled similarity matrix for convenience.
First version of similarity input file reading (categories file and matrices files). Binary and matrix similarity work, too.