New aggregate_properties algorithm

This one does not need any "remove" operation, at the cost of more
memory and maybe more compute power!