You're partially correct. Algorithms can't be patented. However, in practice, patent drafters work around this by adding phrases such as "A memory with computer readable instructions to [Insert Algorithm]" to turn the algorithm into an invented product. The bottom line is that the invention is the memory and the processor system whose novelty is that it includes instructions which implement the particular steps of the algorithm. This practically covers all implementations of the algorithm on Von Neumann machines, in effect covering all current implementations of the algorithm.