added working linear search to helpers.c