sort implementation based on qsort()

* new file for sorting and searching
* updated Makefile
* updated prototypes
better comments
Binary search implementation

* new bsearch_by_id function
* changed search_by_id function
strcmp ifs were wrong