Walshaw algorithm optimizations
Changes