BRANCH and associated statements now correctly check memory access before changing memory
Added function stubs and updated code for hw3