Implemented function `compare`
Implemented function `median`