Add factorial reg4 and update Makefile