Numerical Solutions to PDE Representations of Derivatives with Bilateral Counterparty Risk and Funding Costs Tesis