A numerical algorithm for the third-order partial differential equation with time delay