fix index bug in V1
add a worse case (MOD) for comparison
update Makefile