Removed a lot of slow algorithms. Gauss ruleZZ