added substring algorithms. finished bruteforce