Simple implementation of memory allocation by fixed partitions