use Zeller's congruence to get day of week
locate a substring in a string using KMP method