made location comparable and implemented compareto method. needed to
store in a treeset (which is iterable)