Memory Allocation Problems in Embedded Systems: Optimization Methods