Takes in two lists and sorts them in a pseudoranom fashion