zad1 sorting implemented, not tested yet