enhanced show_lines method to accept a range paramter
clear out @all_matches when calling delete method