draft version of sort, 2d, exp, and utils