sub_score_mat function

Return scores (or distances) for given query and target neurons