Improved Simple version of rabin carp (sigma length issue)