code: private static List<Element> getLastPartition(List<List<Element>> partitions) {
  		if (partitions.isEmpty()) {
  			List<Element> newPartition = new LinkedList<Element>();
  			partitions.add(newPartition);
  			return newPartition;
  		} else {
  			return partitions.get(partitions.size() - 1);
  		}
  	}
docs: Retrieves the last partition (as list of elements) or creates a new one if there was none
  before.
  
  @param partitions
  @return