Change algorithm to return selected row / Updated makefile to link test.o file instead of test.c