How to cite the original source of an algorithm and a secondary source that provides a clearer description of the algorithm?
Something like this should be OK:


  The Bar problem can be solved using the Foo algorithm [1], which is based on
  the fact that Equation holds under Conditions. A useful and detailed exposition of the Foo algorithm and how to implement it in practice can be found in [2].