Allocation

Allocation algorithms, including constraints checks

**** MISSING ******
check for the latency constraint