Peak algebras, paths in the Bruhat graph and Kazhdan–Lusztig polynomials