Simple block allocator created to complement an assignment.