complete_and_sort function

Complete matrices relative to one another and sort into same row, column order