work in progress
lunch work
some sort of non recursive sorting