implimented sort, need to change search from linear to binary