Migrated curvect to utils.c; might crash some genpat files
Created golden model for regfile; updated testing scenarios