simple sorting in c