Minor fixes

Changed the ordination structures, using the method of binary search.
Is sorted by the data is entered.