simple program finding repeated words