added typedef for bool and we also check if heap is allocable before we actually allocate page frames and map them