Add heterogeneous allocation example