Malloc will now assign memory! Fixed issue where program was segfaulting due to invalid pointer arithmatic