Fixing bugs and adding kasiski method.