Returns a map of the distinct values of ks in the xrel mapped to a set of the maps in xrel with the corresponding values of ks.