Homework Day 2: Sorting inv mass arrays - incomplete