Add cost to Record
Add cost stuff to Algorithm