Maths

Sorting and matching.