A Quantum Algorithm for Linear PDEs Arising in Finance