A well-commented implementaion of in-place quicksorting, in Python