Changed pipeline registers around data memory. Added mux to memory writeback.