Added a function to insert a new cost into a list, which could be used to asjust costs after a drag and drop.