updates, currently broke boyer-moore, fixing to make it simpler