added "proportion" method to CollectionUtil