#include <stdlib.h>
#include <stdio.h>

/* Allocates a memory block of the given size using standard malloc,
 * and adds it to the list of allocated blocks.
 * \param size the size of the block to be allocated
 * \return the pointer to the newly allocated block
 */
void * allocate(unsigned int size)
{		
  /* ADD YOUR CODE HERE */
}

/* Deallocates a block of memory and emoves the block from the list of
 * allocated blocks, if the block is currently allocated
 * \param block the block to be deallocated
 */
void deallocate(void * block)
{
  /* ADD YOUR CODE HERE */
}

/* Traverses the list of allocated blocks and deallocates all memory
 * blocks currently allocated
 */
int mem_clear(void)
{
  /* ADD YOUR CODE HERE */
}
