Minimum line covering algorithm added