heap: preliminary array support