Corrected programm. Now program found needed lines, but lines longer than needed