quick sort using friend operator << in our class