added a TreeMap to keep the ordering of eigen values.