Fix gemspec
Switch over to O(N^3) algorithm