code to test malloc and free implementation