studying sort algorithms