added algorithm that print the last k lines of file.