Hecke algebras and the Kazhdan--Lusztig basis