Update AlgorithmA.rb