Code for a heap system without malloc() based on priority values, used for Concurrent Computing 2016 UoB