Initial heap implementation.