Added the algorithms discussed during deliverable 3.3 for Commodity12.