Added test cases to memory_tb.v

Added test cases for reading and writing 8 -bit and 16-bit values to
memory and reading them back. Test cases pass for memory.v