Algorithms for Chemical Computations