add shell sort implementation
add some comments in headers
change 'tools' functions in static functions