On a family of solutions of the KP equation which also satisfy the Toda lattice hierarchy