Put the exercises in a structure, added signature, fixed return type of sort,
changed to int list.