modified makefile to work with both algorithms