Algebra of pseudodifferential operators and symmetries of equations in the Kadomtsev–Petviashvili hierarchy