Remembering past argument inputs
Allowed the user to change k value
merge