27% faster with using c-array as heap