added required constructors for the sorts
main method