Added the posibility to select the input of link-list
Implemented the sorting process