Still working on updating the two-dimensional-cost synthesis implementation. Do not merge yet - I am still testing!