An efficient numerical algorithm for transient analysis of exterior scalar wave propagation in a homogeneous layer