Added module instantiations to mem.v. Connected
counter, memory, and proc modules.