Prolog median (pair) (optional redo)
Here is the link to the Prolog median assignment.