Added algorithms.
Now computes values