Reimplementing more algorithms.

Re-enabled tests for all, any, none.
Working on algorithms.