Motif Finding Problem Implementation