math: Add optimal sorting networks for up to 10 inputs