A simple implimentation of find, which and uniq in C