An algebraic proof of the Kazhdan-Lusztig conjecture