Parse block headers