Program that simulates the way memory allocation works.